home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / php / pear / docs / cyrus / .tmpphp_cyrus.h < prev   
Encoding:
C/C++ Source or Header  |  2004-03-24  |  2.0 KB  |  79 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP Version 4                                                        |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2003 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Author: Sterling Hughes <sterling@php.net>                           |
  16.    +----------------------------------------------------------------------+
  17.  */
  18.  
  19. /* $Id: php_cyrus.h,v 1.1 2003/05/17 14:34:07 sterling Exp $ */
  20.  
  21. #ifndef PHP_CYRUS_H
  22. #define PHP_CYRUS_H
  23.  
  24. #include "php.h"
  25.  
  26. #if HAVE_CYRUS
  27.  
  28. #include <cyrus/imclient.h>
  29.  
  30. extern zend_module_entry cyrus_module_entry;
  31. #define phpext_cyrus_ptr &cyrus_module_entry
  32.  
  33. #ifdef PHP_WIN32
  34. #define PHP_CYRUS_API __declspec(dllexport)
  35. #else
  36. #define PHP_CYRUS_API
  37. #endif
  38.  
  39. PHP_MINIT_FUNCTION(cyrus);
  40. PHP_MINFO_FUNCTION(cyrus);
  41.  
  42. PHP_FUNCTION(cyrus_connect);
  43. PHP_FUNCTION(cyrus_authenticate);
  44. PHP_FUNCTION(cyrus_bind);
  45. PHP_FUNCTION(cyrus_unbind);
  46. PHP_FUNCTION(cyrus_query);
  47. PHP_FUNCTION(cyrus_close);
  48.  
  49. typedef struct {
  50.     struct imclient *client;
  51.     char            *host;
  52.     char            *port;
  53.     int              flags;
  54.     int              id;
  55. }
  56. php_cyrus;
  57.  
  58. typedef struct {
  59.     zval *function;
  60.     char *trigger;
  61.     long  le;
  62.     int   flags;
  63. }
  64. php_cyrus_callback;
  65.  
  66. #endif
  67.  
  68.  
  69. #endif
  70.  
  71.  
  72. /*
  73.  * Local variables:
  74.  * tab-width: 4
  75.  * c-basic-offset: 4
  76.  * indent-tabs-mode: t
  77.  * End:
  78.  */
  79.